package cn.gxufe.reliable.message.api.config;

import cn.gxufe.reliable.message.api.consumer.ProcessMqMessage;
import cn.gxufe.reliable.message.api.consumer.TryServiceConsumer;
import cn.gxufe.reliable.message.api.consumer.impl.TryServiceConsumerImpl;
import cn.gxufe.reliable.message.api.controller.ForConsumerMessageController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author yingjie.rong
 **/
@Configuration
public class RMSApiConfigForConsumer {

    @Bean
    public ProcessMqMessage processMqMessage(ApplicationContext applicationContext){
        return  new ProcessMqMessage(applicationContext);
    }

    @Bean
    public ForConsumerMessageController forConsumerMessageController(){
        return new ForConsumerMessageController();
    }

    @Bean
    public TryServiceConsumer tryServiceConsumer(){
        return new TryServiceConsumerImpl();
    }

}
